package cn.tedu._05mvcboot.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.ArrayList;
import java.util.List;

@Controller
public class GoodsController {

    @RequestMapping("/v1/products/goods")
    @ResponseBody
    public List<String> getGoods(){
        ArrayList<String> list = new ArrayList<>();
        list.add("苹果");
        list.add("香蕉");

        return list;
    }

}
